/**
 * @author Alexandr Smirnov (luc@hot.ee)
 * 
 * Class type.
 */

SMap.extend({
	Class: function() {
		var Class = function() {
			if (this.init) {
				this.init.apply(this, arguments);
			}
		}
		
		var extended = {};
		var parent;
		for(var i=0; i<arguments.length; i++) {
			if(typeof arguments[i] == "function") {
				parent = arguments[i].prototype;
			} else {
				parent = arguments[i];
			}
			SMap.extend(extended, parent);
	    }
		Class.prototype = extended;
		return Class;
	}
});